package online.exam.pojo;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

@Table(name = "answer_paper")
public class AnswerPaper {
    /**
     * 答案编号
     */
    @Id
    @Column(name = "answer_id")
    private String answerId;

    /**
     * 学生编号
     */
    @Column(name = "stu_id")
    private String stuId;

    /**
     * 试卷编号
     */
    @Column(name = "test_id")
    private String testId;

    /**
     * 题号
     */
    @Column(name = "subject_no")
    private Integer subjectNo;

    /**
     * 题目
     */
    @Column(name = "answer_subject")
    private String answerSubject;

    /**
     * 答案
     */
    @Column(name = "subject_answer")
    private String subjectAnswer;

    /**
     * 所得分值
     */
    @Column(name = "single_scale")
    private BigDecimal singleScale;

    /**
     * 总分
     */
    @Column(name = "sum_scale")
    private BigDecimal sumScale;

    /**
     * 答题时间
     */
    @Column(name = "created_time")
    private Date createdTime;

    /**
     * 获取答案编号
     *
     * @return answer_id - 答案编号
     */
    public String getAnswerId() {
        return answerId;
    }

    /**
     * 设置答案编号
     *
     * @param answerId 答案编号
     */
    public void setAnswerId(String answerId) {
        this.answerId = answerId;
    }

    /**
     * 获取学生编号
     *
     * @return stu_id - 学生编号
     */
    public String getStuId() {
        return stuId;
    }

    /**
     * 设置学生编号
     *
     * @param stuId 学生编号
     */
    public void setStuId(String stuId) {
        this.stuId = stuId;
    }

    /**
     * 获取试卷编号
     *
     * @return test_id - 试卷编号
     */
    public String getTestId() {
        return testId;
    }

    /**
     * 设置试卷编号
     *
     * @param testId 试卷编号
     */
    public void setTestId(String testId) {
        this.testId = testId;
    }

    /**
     * 获取题号
     *
     * @return subject_no - 题号
     */
    public Integer getSubjectNo() {
        return subjectNo;
    }

    /**
     * 设置题号
     *
     * @param subjectNo 题号
     */
    public void setSubjectNo(Integer subjectNo) {
        this.subjectNo = subjectNo;
    }

    /**
     * 获取题目
     *
     * @return answer_subject - 题目
     */
    public String getAnswerSubject() {
        return answerSubject;
    }

    /**
     * 设置题目
     *
     * @param answerSubject 题目
     */
    public void setAnswerSubject(String answerSubject) {
        this.answerSubject = answerSubject;
    }

    /**
     * 获取答案
     *
     * @return subject_answer - 答案
     */
    public String getSubjectAnswer() {
        return subjectAnswer;
    }

    /**
     * 设置答案
     *
     * @param subjectAnswer 答案
     */
    public void setSubjectAnswer(String subjectAnswer) {
        this.subjectAnswer = subjectAnswer;
    }

    /**
     * 获取所得分值
     *
     * @return single_scale - 所得分值
     */
    public BigDecimal getSingleScale() {
        return singleScale;
    }

    /**
     * 设置所得分值
     *
     * @param singleScale 所得分值
     */
    public void setSingleScale(BigDecimal singleScale) {
        this.singleScale = singleScale;
    }

    /**
     * 获取总分
     *
     * @return sum_scale - 总分
     */
    public BigDecimal getSumScale() {
        return sumScale;
    }

    /**
     * 设置总分
     *
     * @param sumScale 总分
     */
    public void setSumScale(BigDecimal sumScale) {
        this.sumScale = sumScale;
    }

    /**
     * 获取答题时间
     *
     * @return created_time - 答题时间
     */
    public Date getCreatedTime() {
        return createdTime;
    }

    /**
     * 设置答题时间
     *
     * @param createdTime 答题时间
     */
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    @Override
    public String toString() {
        return "AnswerPaper{" +
                "answerId='" + answerId + '\'' +
                ", stuId='" + stuId + '\'' +
                ", testId='" + testId + '\'' +
                ", subjectNo='" + subjectNo + '\'' +
                ", answerSubject='" + answerSubject + '\'' +
                ", subjectAnswer=" + subjectAnswer +
                ", singleScale='" + singleScale + '\'' +
                ", sumScale=" + sumScale +
                ", createdTime='" + createdTime + '\'' +
                '}';
    }
}